package com.homedo.async.mysql.support.convertor.forfieldval;

/**
 * @author jgshun
 * @date 2020/1/20 11:51 AM
 */
public class BooleanResultFieldValConvertor implements ResultFieldValConvertorI {
    private static final BooleanResultFieldValConvertor INSTANCE = new BooleanResultFieldValConvertor();

    public static BooleanResultFieldValConvertor getInstance() {
        return INSTANCE;
    }


    @Override
    public Boolean convertor(Object columnVal) {
        return Byte.valueOf(columnVal.toString()) > 0;
    }

}
